package com.bruce.common;

import lombok.Data;

import java.util.List;

/**
 * @author Liang.Yong.hui
 * @date 2021/7/4 16:55
 * @description
 */
@Data
public class PageBean<T> {
    private List<T> data;
    private Integer totalCount;

    public PageBean(List<T> data, Integer totalCount) {
        this.data = data;
        this.totalCount = totalCount;
    }

    public void setData(Response<List<T>> response) {
        this.data = response.getData();
    }

    public PageBean() {
    }
}
